<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<div class="modal-dialog">
	<div class="modal-content">
		<div class="modal-header">
			<button type="button" class="close" data-dismiss="modal"
				aria-hidden="true">X</button>
			<h3 id="myModalLabel">${empty entity?'新增':'修改' }活动列表信息</h3>
		</div>
		<div class="modal-body">
			<form class="form-horizontal" method="post" id="sysUserForm"
				name="sharedStatisticsForm"
				action="sharedstatistics/save${empty entity?'Insert':'Update' }.htm"
				role="form">
				<div class="form-group">
					<label class="col-sm-2 control-label">被邀请者手机号<font
						color="red">&nbsp;*</font></label>
					<div class="col-sm-10">
						<input type="hidden" value="${entity.sharedId }"
							name="sharedId" /> <input type="text" class="form-control"
							id="sharedstatistics_mobile" name="mobile" value="${entity.mobile }">
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label">操作时间<font color="red">&nbsp;*</font></label>
					<div class="col-sm-10">
						<input type="number" step="1" class="form-control"
							name="creatTime" id="sharedstatistics_creatTime"
							value="${entity.creatTime }">
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label">修改时间</label>
					<div class="col-sm-10">
						<input type="text" class="form-control" name="modifyTime"
							id="sharedstatistics_modifyTime" value="${entity.modifyTime }">
					</div>
				</div>
				
				<span id="tip"
					style="color: red; font-size: 14px; margin-left: 20px;"></span>
			</form>
		</div>
		<div class="modal-footer">
			<button class="btn btn-default" data-dismiss="modal"
				aria-hidden="true">取消</button>
			<button class="btn btn-primary" data-dismiss="modal">保存</button>
		</div>
	</div>
</div>
<script type="text/javascript"
	src="resources/js/My97DatePicker/WdatePicker.js" charset="utf-8"></script>
<script type="text/javascript">
	function check_fun() {
		$("#tip").html("");
		var b = true;
		var mobile = $("#sharedstatistics_mobile").val();
		var creatTime = $('input[name="creatTime"]:checked').val();
		var modifyTime = $('input[name="modifyTime"]:checked').val();
		
	
		if (mobile == null || mobile.trim() == '') {
			$("#tip").html("请输入被邀请者手机号");
			b = false;
		}
		if (creatTime == null || creatTime.trim() == '') {
			$("#tip").html("请输入操作时间");
			b = false;
		}
		if (modifyTime == null || modifyTime.trim() == '') {
			$("#tip").html("请输入修改时间");
			b = false;
		}
		return b;
	}
</script>